import { createAxios } from '@/utils/http/axios';

enum Api {
  listBySn = '/app/iotDeviceWarnCfg/listBySn',
}

export function listDeviceWarnCfgBySnApi(sn: string) {
  return createAxios({
    requestOptions: {
      apiUrl: '/hc-api',
    },
  }).post(
    {
      url: Api.listBySn,
      data: {
        sn,
      },
    },
    {
      retryRequest: {
        isOpenRetry: true,
        count: 5,
        waitTime: 1000,
      },
    },
  );
}
